//
//  XMImageToolView.h
//  XiaoMiao
//
//  Created by 23 on 2018/2/5.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class XMImageToolView;

typedef NS_ENUM(NSInteger, XMImageToolStatus) {
    XMImageToolStatusInitial                = 0,        //初始化
    XMImageToolStatusMask                   = 1,        //马赛克
    XMImageToolStatusEraser                 = 2,        //橡皮擦
    XMImageToolStatusAttach                 = 3,        //文字水印
    XMImageToolStatusClearAttach            = 4,        //清除文字水印

};

@protocol XMImageToolViewDelegate <NSObject>


- (void)imageToolView:(XMImageToolView *)toolView didStyleStatusChanged:(XMImageToolStatus )styleStatus;
- (void)imageToolView:(XMImageToolView *)toolView styleStatusDidForward:(XMImageToolStatus )styleStatus;
- (void)imageToolView:(XMImageToolView *)toolView styleStatusDidBackward:(XMImageToolStatus )styleStatus;

//确认添加的文字水印
- (void)imageToolView:(XMImageToolView *)toolView didConfirmText:(NSString *)text;

@end


@interface XMImageToolView : UIView

+ (instancetype)imageToolView;
@property (weak, nonatomic, readonly) IBOutlet UITextField *attachTextField;

/**代理*/
@property(nonatomic,weak) id<XMImageToolViewDelegate> delegate;


@end
